import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.ArrayList;


public class handDisplay extends Menu {
	private Hand hand;
	private Player player;
	private Turn turn;
	private ArrayList<sCard> cards;
	
	public handDisplay (Turn turn) {
		this.turn = turn;
		this.player = turn.getPlayer();
		this.hand = player.getHand();
//		System.out.println("Hand");
		cards = hand.getCards();
		
		
	}
	
	public Hand getHand() {
		return hand;
	}
	public void setHand(Hand hand) {
		this.hand = hand;
	}
	public Player getPlayer() {
		return player;
	}
	public void setPlayer(Player player) {
		this.player = player;
	}

	@Override
	public void activate(String buttonName) {}

	
	@Override
	//Draws all the cards by referencing their images
	public void drawSelf(Graphics g) {
		// TODO Auto-generated method stub
		g.drawString("Brick: " + getPlayer().getBrick(), 420, 620);
		g.drawString("Grain: " + getPlayer().getGrain(), 470, 620);
		g.drawString("Lumber:" + getPlayer().getLumber(), 520, 620);
		g.drawString("Ore: " + getPlayer().getOre(), 580, 620);
		g.drawString("Wool: " + getPlayer().getWool(), 620, 620);
		for (int i = 0; i < hand.getCards().size(); i++){
			System.out.print(cards);
			g.drawImage(hand.getCards().get(i).getImage(), 420 + 40 * i, 640, 40, 40, null);
		}
	}
}
